<?php
/* @var $this WhislistController */
/* @var $model Whislist */

$this->breadcrumbs=array(
	'Whislists'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Whislist', 'url'=>array('ADMIN')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('whislist-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'whislist-grid',
	'dataProvider'=>$model->search(),
	// 'filter'=>$model,
	'columns'=>array(
		array(
                'header' => 'No',
                'value' => '$row+1',
            ),
		'kODEPRODUK.NAMA_PRODUK',
		'kODEPRODUK.NAMA_PRODUK',
		'kODEPRODUK.kODETOKO.NAMA_TOKO',
		'iDUSER.NAMA',
		'TANGGAL_WHISLIST',
	),
)); ?>

<table class="items">
<thead>
	<tr>
		<th>
		re
		</th>
		<th>
		re
		</th>
		<th>
		re
		</th>
	</td>
	</thead>
</table>

